//前端遍历用户所有菜单权限，包含子菜单
const getMeus = function(meuns){
    let tempArr = []

    meuns.forEach(item => {
        tempArr.push(item.cdMenu)
        if(item.children && item.children.length > 0){
            let subMenus  = getMeus(item.children)
            tempArr = [...tempArr,...subMenus]
        }
    });

    return tempArr
}

export default getMeus
